package com.mgface.framework.metrics;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.metrics.CounterService;
import org.springframework.stereotype.Component;
/**
 * 自定义指标数据
 * @author user
 *
 */
@Component
public class SBDMetrics {
	private final CounterService counterService;

	@Autowired
	public SBDMetrics(CounterService counterService) {
		this.counterService = counterService;
	}

	public void invokeMethod() {
		this.counterService.increment("sbd.system.metrics.service.invoked");
	}
}
